<html>
    <head>
        <title><g:layoutTitle default="" /> - 小铅笔家教网</title>
        <bp:blueprintCss/>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="jquery"/>
        <g:javascript library="application" />
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
        </div>
        <div class="container">
        <div id="header" class="span-24 last">
             
                <g:render template="/menu"  />
            
        </div>
        <div id="main" class="span-24 last">
   
         <div class="left span-7 ">
        <g:isNotLoggedIn>
            <div class="login-title">
            &nbsp; 
            </div>
            <div class="login">
            <form method=post action="/jiajiao/j_spring_security_check">
                <table  style="width: 100%">
                <tr>
                    <td>用户名：</td>
                    <td><input type="text" name="j_username" style="width:130px"></td> 
                    <td rowspan="2" ><input type="image" src="${resource(dir:'images',file:'login-submit.jpg')}" style="width:38px; height:47px;border:0;background:none;"></td>

                </tr>
                <tr>
                    <td>密　码：</td>
                    <td><input type="password" name="j_password" style="width:130px"></td>
                </tr>
                <tr>
                    <td colspan="3" style="text-align:center"><g:link controller="register" action="index"  >注册</g:link> 
                    <!--<g:link controller="getPassword" action="index"  >找回密码</g:link>-->
                    <a href="#">找回密码</a></td>
                </tr> 
                </table>
            </form>
            </div>
            </g:isNotLoggedIn>
            

    <g:ifAnyGranted role="ROLE_STUDENT">    
            <div>
            <h1>教师搜索</h1>
            </div>
            <div class="login">
            <g:form controller ="teacher" action="search" method="post" name="teacher">
                <table  style="width: 100%">
                <tr>
                    <td>所在区域：</td>
                    <td><g:lookupSelect id="area" name="area" realm="area"/></td> 

                </tr>

                <tr>
                    <td>所带科目：</td>
                    <td><g:lookupSelect id="courses" name="courses" realm="courses"/></td>
                </tr>

                <tr>
                    <td>性别：</td>
                    <td>
                    <g:each in="['男':'男','女':'女','不限':'0']">
                        ${it.key}<g:radio class="radio" name="sex" value="${it.value}" checked="${it.value=='0'?true:false}"/>
                    </g:each>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><center><input type="submit" style="width:60px;" value="搜  索" /><center>
            </td> 
                </tr>
                </table>
                </g:form>
            </div>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_TEACHER">    
            <div>
            <h1>学员信息搜索</h1>
            </div>
            <div class="login">
            <g:form controller ="postMgr" action="search" method="post">
                <table  style="width: 100%">
                <tr>
                    <td>要求科目：</td>
                    <td><g:lookupSelect id="courses" name="courses" realm="courses"/></td>
                </tr>

                <tr>
                    <td>要求性别：</td>
                    <td>
                    <g:each in="['男':'男','女':'女','不限':'0']">
                        ${it.key}<g:radio class="radio" name="sex" value="${it.value}" checked="${it.value=='0'?true:false}"/>
                    </g:each>
                    </td>
                </tr>

                <tr><br/>
                    <td colspan="2"><center><input type="submit" style="width:60px;" value="搜  索" /><center></td> 
                </tr>
                </table>
                </g:form>
            </div>
    </g:ifAnyGranted>


            <div class="area-title">&nbsp;</div>
            <div class="area">
            <ul>
                <li><g:link action="index" controller="about" id="0">小铅笔家教网友情提醒</g:link>
                <li><g:link action="index" controller="about" id="1">如何请家教</g:link>
                <li><g:link action="index" controller="about" id="2">请家教服务流程 </g:link>
                <li><g:link action="index" controller="about" id="3">如何做家教</g:link>
                <li><g:link action="index" controller="about" id="4">做家教服务流程</g:link>
                <li><g:link action="index" controller="about" id="5">如何培养孩子学习兴趣</g:link>
                <li><g:link action="index" controller="about" id="6">怎样对待 “较真”孩子</g:link>
            </ul> 
            </div>
            <div class="call" >
            <div class=""  style="padding: 20px 0 0 0;text-align:center"">孟老师<br>15029950689</div> 
            </div>
            <div class="mail"><img src="${resource(dir:'images',file:'mail.png')}" border=0 alt="" style="margin: 30px 0 0 50px"></div>
        </div>
    
        <div class="span-17 last"><br>
            <g:layoutBody />
        </div>
        </div>
        <div id="footer" class="span-24 last">
            <g:render template="/footer"  />
        </div>
        </div>
    </body>
</html>